package com.itheima.reggie.mapper;

import com.itheima.reggie.entity.OrderDetail;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrderDetailMapper {

    void save(@Param("orderDetails") List<OrderDetail> orderDetails);
    @Select("select *from order_detail where order_id=#{id};")
    List<OrderDetail> findByIdOrder(Long id);
}
